﻿using WebApplication1.Core.Domain.Entities;

namespace WebApplication1.Core.DataTransferObject {
    public class SheQuResponse {

        public ushort SheQuID { get; set; }

        public string MingCheng { get; set; }

        public string? DianHua { get; set; }

        public string? ShuJi { get; set; }

        public string? ShuJiDianHua { get; set; }

    }

    public static class SheQuExtension {
        public static SheQuResponse ToSheQuResponse(this SheQu sheQu) {
            return new SheQuResponse() {
                SheQuID = sheQu.SheQuID,
                MingCheng = sheQu.MingCheng,
                DianHua = sheQu.DianHua,
                ShuJi = sheQu.ShuJi,
                ShuJiDianHua = sheQu.ShuJiDianHua
            };
        }
    }
}
